import request from '@/utils/request'

// 查询租赁申请列表
export function listApplications(query) {
  return request({
    url: '/room/applications/list',
    method: 'get',
    params: query
  })
}
//审批
export function approvalApplications(data) {
  return request({
    url: '/room/applications/approval',
    method: 'put',
    data: data
  })
}
// 查询租赁申请详细
export function getApplications(applicationId) {
  return request({
    url: '/room/applications/' + applicationId,
    method: 'get'
  })
}

// 新增租赁申请
export function addApplications(data) {
  return request({
    url: '/room/applications',
    method: 'post',
    data: data
  })
}

// 修改租赁申请
export function updateApplications(data) {
  return request({
    url: '/room/applications',
    method: 'put',
    data: data
  })
}

// 删除租赁申请
export function delApplications(applicationId) {
  return request({
    url: '/room/applications/' + applicationId,
    method: 'delete'
  })
}

//
